<?php
include_once '../class/psnFriends.class.php';

$PSLogURL = "https://store.playstation.com/external/index.vm?returnURL=";
$ThisURL = "http://".$_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"];

if (isset($_GET['sessionId'])) {
    $psnFriends=new psnFriends($_GET['sessionId']);
    echo $psnFriends->echoXmlOnlineFriends();
 
} else 
    header ("Location: " . $PSLogURL . $ThisURL);	
?>
